package delete2;

import java.io.OutputStream;
import java.net.InetAddress;
import java.net.Socket;

//客户端
public class TCP11 {
    public static void main(String[] args) throws Exception {

      Socket socket=new Socket(InetAddress.getByName("localhost"),9292);
      String msg="鱼骨头!!!";
      OutputStream out = socket.getOutputStream();
         out.write(msg.getBytes());

     out.close();
    socket.close();



    }
}
